package com.khshop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.khshop.pojo.Carousel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.khshop.pojo.Menupriv;
import com.khshop.vo.ServiceResult;

import java.util.Map;

/**
 * <p>
 * 轮播图 服务类
 * </p>
 *
 * @author zhaoyang
 * @since 2020-10-16
 */
public interface CarouselService extends IService<Carousel> {

    //新增轮播图
    public ServiceResult<Carousel> addCarousel(Carousel carousel);

    //修改轮播图
    public ServiceResult<Carousel> updateCarousel(Carousel carousel);

    //删除轮播图
    public ServiceResult<Carousel> delCarousel(Integer id);

    //查询轮播图
    public ServiceResult<IPage<Carousel>> searchCarousel(String title, Integer page, Integer limit);

}
